/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import type.MarketSalesType;
import type.Month;

/**
 *
 * @author sunwei
 */
@Entity(name = "MarketSalesReport")
public class MarketSalesReportEntity extends DataObjectEntity implements Serializable {
    
    private MarketSalesType salesType;
    private long salesValue;
    private int year;
    private Month month; // only used for sales forecasting trend, backend usage

    public MarketSalesReportEntity() {
        super();
    }
    
    public MarketSalesReportEntity(MarketSalesType salesType, long sales, int year){
        this.salesType = salesType;
        salesValue = sales;
        this.year = year;
    }
    
    public int getYear(){
        return year;
    }
    
    public void setMonth(Month month){
        this.month = month;
    }
    
    public Month getMonth(){
        return month;
    }
    
    public void setYear(int year){
        this.year = year;
    }
    
    public MarketSalesType getSalesType(){
        return salesType;
    }
    
    public void setSalesType(MarketSalesType type){
        this.salesType = type;
    }
    
    public long getSalesValue(){
        return salesValue;
    }
    
    public void setSalesValue(long value){
        salesValue = value;
    }
    

    @Override
    public String childToString() {
         return "MarketSaleReportEntity";
    }
    
}
   